From f9f021d18d5d27d903dd9932ce9ebcafe16a1af8 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 13 Jun 2006 13:13:39 -0600 Subject: [PATCH] [IA64] Pull changes from xen-unstable.hg cset 10242 into mm.c Signed-off-by: Alex Williamson --- xen/arch/ia64/xen/mm.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/xen/arch/ia64/xen/mm.c b/xen/arch/ia64/xen/mm.c index 64de18f3c0..86f769289f 100644 --- a/xen/arch/ia64/xen/mm.c +++ b/xen/arch/ia64/xen/mm.c @@ -35,26 +35,16 @@ alloc_dom_xen_and_dom_io(void) * Any Xen-heap pages that we will allow to be mapped will have * their domain field set to dom_xen. */ - dom_xen = alloc_domain(); + dom_xen = alloc_domain(DOMID_XEN); BUG_ON(dom_xen == NULL); - spin_lock_init(&dom_xen->page_alloc_lock); - INIT_LIST_HEAD(&dom_xen->page_list); - INIT_LIST_HEAD(&dom_xen->xenpage_list); - atomic_set(&dom_xen->refcnt, 1); - dom_xen->domain_id = DOMID_XEN; /* * Initialise our DOMID_IO domain. * This domain owns I/O pages that are within the range of the page_info * array. Mappings occur at the priv of the caller. */ - dom_io = alloc_domain(); + dom_io = alloc_domain(DOMID_IO); BUG_ON(dom_io == NULL); - spin_lock_init(&dom_io->page_alloc_lock); - INIT_LIST_HEAD(&dom_io->page_list); - INIT_LIST_HEAD(&dom_io->xenpage_list); - atomic_set(&dom_io->refcnt, 1); - dom_io->domain_id = DOMID_IO; } // heavily depends on the struct page_info layout. -- 2.30.2